home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr36 / bcrc100.zip / SCANFILE.BAT < prev    next >
DOS Batch File  |  1993-06-28  |  1KB  |  33 lines

  1. REM SCANFILE.BAT for WILDCAT! 3.0+ BBS System!
  2.  
  3. REM  NOTE!   DELETE ALL COMMENTS AFTER THE ; !!!!!!
  4.  
  5. CD\WC30\WCWORK\NODE%WCNODEID%            ;Change to NODE Directory
  6. if exist scanfile.bad erase scanfile.bad ;ERASE Scanfile.bad if exists.
  7.  
  8. B-CRC %1                                 ;Run B-CRC on Uploaded File.
  9.  
  10. IF ERRORLEVEL 1 GOTO NOGOOD              ;If FAILED GOTO NOGOOD Section
  11. D:                                       ;Change Drives
  12. cd\new-B                                 ;Change to B-BUILD Database DIR
  13. B-BUILD %1                               ;Run B-BUILD to add file to database
  14. C:                                       ;Go back to C Drive
  15. CD\WC30\WCWORK\NODE%WCNODEID%            ;Change back to Node Directory
  16. GOTO GOOD                                ;GOTO GOOD Section and run CATSCAN
  17.  
  18.  
  19. :NOGOOD                                  ;This is the NOGOOD Section for
  20.                                          ;Failed Files
  21.  
  22. COPY C:\wc30\all.ok c:\wc30\wcwork\node%WCNODEID%\scanfile.bad
  23.                    ;Above -Copy Dummy file ALL.OK to Scanfile.Bad to Fail
  24.                    ;Upload in Wildcat!
  25. GOTO FINALLY       ;Go to Finally Section which exits batch file.
  26.  
  27. :GOOD              ;GOOD Section - File is OK so lets run CATSCAN
  28. CATSCAN %1
  29. IF ERRORLEVEL 1 COPY C:\wc30\all.ok c:\wc30\wcwork\node%WCNODEID%\scanfile.bad
  30.  
  31. :FINALLY           ;Section to EXIT out of this Batch file.
  32.  
  33.